<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        /*
            while (条件){
                //循环体
            }
        */

        var sum=0;
        var i=0;
        while(i<=100)
        {
            i++
            if(i%5==0)
            {
                sum+=i
            }
        }
        document.write("5的倍数和:"+sum)
    </script>
</head>
<body>
    
</body>
</html>